package com.yunhuakeji.wddx.utils;

public class compareValue
{
	public static double getMax(double[] arr) {  
		double max = Integer.MIN_VALUE;  
          
        for(int i = 0; i < arr.length; i++) {  
            if(arr[i] > max)  
                max = arr[i];  
        }  
        return max;  
    }  
      
    public static double getMin(double[] arr) {  
    	double min = Integer.MAX_VALUE;  
          
        for(int i = 0; i < arr.length; i++) {  
            if(arr[i] < min)  
                min = arr[i];  
        }  
        return min;  
    } 
} 
     
